import {channelRequestHeadFun} from "@/common/js/util";
import request from "@/common/js/request";

const SERVER_URL = "/api/agent/agent/agent-web";
const tenantId = 'gysk'

export default {
    // 客经用户个人信息查询
    queryList(data) {
        let {headData, aesData} = channelRequestHeadFun(true, data);
        return request({
            url: `${SERVER_URL}/v1/api/backend/product/customer/queryByCondition`,
            method: "post",
            data: {channelRequestHead: headData, requestBody: {data: aesData}},
        });
    },
    queryDetail(data) {
        let {headData, aesData} = channelRequestHeadFun(true, data);
        return request({
            url: `${SERVER_URL}/v1/api/backend/product/queryDetail`,
            method: "post",
            data: {channelRequestHead: headData, requestBody: {data: aesData}},
        });
    },
}
